export class Config {

    public static One_Day: number = 1000 * 60 * 60 * 24;

    public static EnvironmentType = {
        Local: 0,
        Test: 1,
        Online: 2,
    }

    public static environment: number = Config.EnvironmentType.Test;

    public static isConnectServer: boolean = true; //是否联网

  
    private static httpUrlConfigList: Array<string> = [
        "http://localhost:5555", // local
        "http://121.37.251.120:8400", // test
        "http://121.37.251.120:8400", // online
    ]


    public static getOnlineServer() {
     
    }

    public static getHttpUrl(): string {
        let url: string = this.httpUrlConfigList[this.environment];
        return url;
    }

    public static getUploadImgUrl(): string {
        let url: string = this.getHttpUrl() + "/upload_img"
        return url
    }
}